@tool
class_name StateComponent
extends BaseComponent

#region 属性
@export var state_chart_manager:StateChartManager
#endregion
#region 字段
var state_chart:StateChart:
	get:
		if not state_chart:
			state_chart = state_chart_manager.find_child("StateChart",false)
		return state_chart
#endregion
#region 信号
#endregion

#region 基类方法
func init_component(args:Dictionary = {}):
	super(args)
#endregion
#region 公共方法
func get_state_chart_manager() -> StateChartManager:
	return state_chart_manager
#endregion
#region 私有方法
#endregion
#region 生命周期函数
func _init() -> void:
	if Engine.is_editor_hint():
		priority = -10
#endregion
